home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / ms-0_06.lha / xms-0.06 / noImakefile < prev    next >
Makefile  |  1991-09-22  |  1KB  |  60 lines

  1. # noImakefile
  2. # This is a simple makefile provided for the convenience of those 
  3. # unfortunate users who don't have Imake.  If at all possible, use 
  4. # Imakefile instead.
  5.  
  6. # This makefile is for X11R4 and assumes you have the Andrew widgets (Xaw).
  7. #
  8. # Users of earlier X11 versions or X11R4 systems that lack the 
  9. # Xaw library should remove -lXaw -lXmu, and -lXext from XLIBS,
  10. # the "menu" and "label" modules from SRCS and OBJS, and
  11. # all the R4_DEFINES below.
  12.  
  13. R4_DEFINES = -DR4 -DMENU -DLABEL
  14.  
  15. # Name of program to make
  16. TARGET=xms
  17.  
  18. CC=gcc
  19. LD=$(CC)
  20.  
  21. CFLAGS= -O -DXMS
  22. LDFLAGS=
  23.  
  24. XLIBS= -lXaw -lXmu -lXt -lXext -lX11
  25.  
  26. SRCS= Ms.c main.c Mama.c menu.c label.c work.c mspawn.c
  27. OBJS= Ms.o main.o Mama.o menu.o label.o work.o mspawn.o
  28.  
  29. $(TARGET): $(OBJS)
  30.     $(LD) $(LDFLAGS) $(OBJS) $(XLIBS) -lm -o $(TARGET)
  31.  
  32. Mama.o: Mama.c Mama.h MamaP.h Ms.h ms_real.h ms_ipc.h backward.h
  33.     $(CC) $(CFLAGS) $(R4_DEFINES) Mama.c -c
  34.  
  35. Ms.o: Ms.c Ms.h MsP.h Mama.h ms_job.h backward.h
  36.     $(CC) $(CFLAGS) $(R4_DEFINES) Ms.c -c
  37.  
  38.  
  39. main.o: main.c Mama.h Ms.h backward.h
  40.     $(CC) $(CFLAGS) $(R4_DEFINES) main.c -c
  41.  
  42. menu.o: menu.c
  43.     $(CC) $(CFLAGS) $(R4_DEFINES) menu.c -c
  44.  
  45. label.o: label.c
  46.     $(CC) $(CFLAGS) $(R4_DEFINES) label.c -c
  47.  
  48. work.o: work.c work.h ms_ipc.h ms_real.h
  49.     $(CC) $(CFLAGS) work.c -c
  50.  
  51. mspawn.o: mspawn.c mspawn.h ms_ipc.h
  52.     $(CC) $(CFLAGS) mspawn.c -c
  53.  
  54. clean: 
  55.     rm -f $(OBJS) core *~
  56.  
  57. spotless: clean
  58.     rm -f $(TARGET) Makefile.bak
  59.